package com.xuetang9.domain;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "way_pole")
public class WayPole implements Serializable {
    /**
     * 塔杆编号
     */
    @Column(name = "pole_id")
    private String poleId;

    /**
     * 路线编号
     */
    @Column(name = "way_id")
    private String wayId;

    private static final long serialVersionUID = 1L;

    /**
     * 获取塔杆编号
     *
     * @return pole_id - 塔杆编号
     */
    public String getPoleId() {
        return poleId;
    }

    /**
     * 设置塔杆编号
     *
     * @param poleId 塔杆编号
     */
    public void setPoleId(String poleId) {
        this.poleId = poleId;
    }

    /**
     * 获取路线编号
     *
     * @return way_id - 路线编号
     */
    public String getWayId() {
        return wayId;
    }

    /**
     * 设置路线编号
     *
     * @param wayId 路线编号
     */
    public void setWayId(String wayId) {
        this.wayId = wayId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", poleId=").append(poleId);
        sb.append(", wayId=").append(wayId);
        sb.append("]");
        return sb.toString();
    }
}